package com.atguigu.tingshu.search.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.search.client.impl.SearchDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Wu Xingbin
 * @date 2023/12/5/16:03
 */
@FeignClient(value = "service-search", fallback = SearchDegradeFeignClient.class)
public interface SearchFeignClient {
    /**
     * 更新排行榜
     *
     * @return
     */
    @GetMapping("api/search/albumInfo/updateLatelyAlbumRanking")
    public Result updateLatelyAlbumRanking();
}
